<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="item in banner.list">
      <img :src="item.image" :alt="item.title" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: "Swipe",
  props: ["banner"],
}
</script>

<style lang="less" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  text-align: center;
  background-color: #39a9ed;
  img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
  }
}
</style>
